//
//  KSReturnedPurchaseTableViewCell.swift
//  Supermarket
//
//  Created by liuxm on 2017/9/28.
//  Copyright © 2017年 kushao. All rights reserved.
//

import UIKit

/// 采购退货
class KSReturnedPurchaseTableViewCell: UITableViewCell {

    /// 订单号
    @IBOutlet weak var orderNoLabel: UILabel!
    /// 状态
    @IBOutlet weak var statusLabel: UILabel!
    /// 供应商
    @IBOutlet weak var supplierLabel: UILabel!
    /// 退货数量
    @IBOutlet weak var numLabel: UILabel!
    /// 整单金额
    @IBOutlet weak var moneyLabel: UILabel!
    
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
    }

    func setDataWithModel(model: KSRefunListDataListModel) {
        orderNoLabel.text = model.order_number
        statusLabel.text = model.status_name
        supplierLabel.text = model.merchant_name
        numLabel.text = model.refund_total_num
        moneyLabel.text = "\(Int(model.money))"
    }
    
    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }
    
}
